package com.yan.community.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yan.club.result.Result;
import com.yan.community.model.ClubCommunityCategory;
import com.yan.community.model.ClubCommunityCategoryExample;

/**
 * @author 彦
 * @since 2024/1/15 15:38
 */
@Mapper
public interface ClubCommunityCategoryMapper {
    long countByExample(ClubCommunityCategoryExample example);

    int deleteByExample(ClubCommunityCategoryExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ClubCommunityCategory record);

    int insertOrUpdate(ClubCommunityCategory record);

    int insertOrUpdateSelective(ClubCommunityCategory record);

    int insertSelective(ClubCommunityCategory record);

    List<ClubCommunityCategory> selectByExample(ClubCommunityCategoryExample example);

    ClubCommunityCategory selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ClubCommunityCategory record, @Param("example") ClubCommunityCategoryExample example);

    int updateByExample(@Param("record") ClubCommunityCategory record, @Param("example") ClubCommunityCategoryExample example);

    int updateByPrimaryKeySelective(ClubCommunityCategory record);

    int updateByPrimaryKey(ClubCommunityCategory record);

    int updateBatch(List<ClubCommunityCategory> list);

    int updateBatchSelective(List<ClubCommunityCategory> list);

    int batchInsert(@Param("list") List<ClubCommunityCategory> list);

    /**
     * 逻辑删除
     *
     * @param id
     * @return
     */
    Result<String> delCategory(Long id);
}